(self.AMP=self.AMP||[]).push({n:"amp-instagram",v:"2102130314001",m:0,f:(function(AMP,_){ 'use strict';var f,g="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b};function k(a){for(var b=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global],c=0;c %s",b,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0);this.l=this.element.hasAttribute("data-captioned")?"captioned/":""}; f.isLayoutSupported=function(a){return"fixed"==a||"fixed-height"==a||"responsive"==a||"fill"==a||"flex-item"==a||"fluid"==a||"intrinsic"==a}; f.layoutCallback=function(){var a=this,b=this.element.ownerDocument.createElement("iframe");this.h=b;this.j=C(this.win,this.B.bind(this));b.setAttribute("scrolling","no");b.setAttribute("frameborder","0");b.setAttribute("allowtransparency","true");b.setAttribute("title","Instagram: "+this.element.getAttribute("alt"));b.src="https://www.instagram.com/p/"+encodeURIComponent(this.A)+"/embed/"+this.l+"?cr=1&v=12";this.applyFillContent(b);this.element.appendChild(b);F(b,0);return this.o=this.loadPromise(b).then(function(){a.getVsync().mutate(function(){F(b, 1)})})};f.B=function(a){var b=this;if("https://www.instagram.com"==a.origin&&a.source==this.h.contentWindow){var c=a.data;if(c&&("[object Object]"===r.call(c)||c.startsWith("{"))){if("[object Object]"===r.call(c))var d=c;else try{d=JSON.parse(c)}catch(h){d=null}a=d;if(void 0!==a&&"MEASURE"==a.type&&a.details){var e=a.details.height;this.getVsync().measure(function(){b.h&&b.h.offsetHeight!==e&&b.forceChangeHeight(e)})}}}};f.unlayoutOnPause=function(){return!0}; f.unlayoutCallback=function(){if(this.h){var a=this.h;a.parentElement&&a.parentElement.removeChild(a);this.o=this.h=null}this.j&&this.j();return!0};(function(a){a.registerElement("amp-instagram",G,"amp-instagram.amp-instagram-default-framing{border:1px solid #dbdbdb!important}\n/*# sourceURL=/extensions/amp-instagram/0.1/amp-instagram.css*/")})(self.AMP); })}); //# sourceMappingURL=amp-instagram-0.1.js.map